import request from "@/utils/request";

// 新增库位
export function addWarehouseLocation(query) {
  return request({
    url: "/skesWarehouseLocation",
    method: "post",
    data: query,
  });
}



// 编辑库位
export function editWarehouseLocation(query) {
    return request({
      url: "/skesWarehouseLocation",
      method: "put",
      data: query,
    });
  }
  // 库位列表
export function getWarehouseLocationList(query) {
    return request({
      url: "/skesWarehouseLocation/list",
      method: "get",
      params: query,
    });
  }
  // 库位详情
export function getWarehouseLocationById(id) {
    return request({
      url: `/skesWarehouseLocation/${id}`,
      method: "get",
    });

}
  // 删除库位
export function delWarehouseLocationById(id) {
    return request({
      url: `/skesWarehouseLocation/${id}`,
      method: "delete",
    });

}
  // 导出库位
export function exportWarehouseLocation(query) {
    return request({
      url: `/skesWarehouseLocation/export`,
      method: "get",
      params: query
    });
  }

